package com.platform.common.security.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * 接口权限认证配置
 */
@Data
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "auth.config")
public class AuthConfigProperties {

    /**
     * 接口是否拦截
     */
    private boolean check = true;

    /**
     * 内部接口是否拦截
     */
    private boolean innerCheck = false;
    /**
     * 外部接口是否拦截
     */
    private boolean externalCheck = false;

    /**
     * 白名单
     */
    private List<String> whites = new ArrayList<>();
}
